<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        class A {
            constructor() {
                // 等同于构造函数
                this.name = "lili";
            }
            // 挂在原型对象的函数
            play() {
                console.log("这是原型对象中的play 函数");
            }
        }
        var a = new A();

        class B extends A {
            constructoro(name) {
                suprt(name) //call
            }
            play() {
                suprt.olay()
                // 新的代码

            }
        }
    </script>
</body>

</html>